﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="/admin/EasyUi/themes/default/easyui.css?v=@ViewBag.CssVersion" />
    <link rel="stylesheet" type="text/css" href="/admin/EasyUi/themes/icon.css?v=@ViewBag.CssVersion" />

    <script type="text/javascript" src="/admin/Common/Scripts/jquery-1.12.0.min.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/EasyUi/jquery.easyui.min.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/EasyUi/locale/easyui-lang-zh_CN.js?v=@ViewBag.JsVersion"></script>
    <script type="text/javascript" src="/admin/Common/Scripts/Utils.js?v=@ViewBag.JsVersion"></script>
</head>
<body>
    <div>
        <div id="divpanel" title="菜单分类" class="easyui-panel">
            <ul id="treeMenu_AdminMenu"></ul>
        </div>
        <script>
            $('#divpanel').panel({
                width: '100%',
                height: '700px',
                doSize: true
            });
            $('#treeMenu_AdminMenu').tree({
                url: 'GetMenuList',
                loadFilter: function (data) {
                    return data;
                },
                animate: true,
                lines: true,
                onClick: function (node) {
                    //展开当前节点
                    $('#treeMenu_AdminMenu').tree("expand", node.target);
                    //刷新编辑区域
                    window.parent.frames["childFrame"].location.href = node.url;
                },
                onLoadSuccess: function (node, data) {
                    //折叠所有
                    $('#treeMenu_AdminMenu').tree("collapseAll");
                }

            });
        </script>


    </div>
</body>
</html>
